import Vue from 'vue'
import app from './logon.vue'
//路由提取成js
import router from './router'


var vm = new Vue({
    data: {
        msg: '测试vue是否引入成功！！'
    }, watch: {
        '$route.path': function (newVal, oldVal) {
            console.log(`${newVal} : ${oldVal}`);
        }
    },
    //会把div所有元素替换掉，如果直接写html会导致路由就不生效
    render: c => c(app),
    router  //将路由对象挂在在vm上
}).$mount("#app")

